/*
 * @Author: 郑俊标
 * @Date: 2024-06-05 17:16:24
 * @LastEditors: 郑俊标
 * @LastEditTime: 2024-06-17 16:26:38
 * @Description: 
 */
import request from '@/utils/request';
export function login(data) {
    return request({
        url: '/login',
        data,
        method: 'post',
        headers: {
            isToken: false,
            repeatSubmit: false
        }
    })
}

// 获取用户详细信息
export function getInfo() {
	return request({
		url: '/getInfo',
		method: 'get',
	});
}

// 获取验证码
export function getCodeImg() {
	return request({
		url: '/captchaImage',
		headers: {
			isToken: false,
		},
		method: 'get',
		timeout: 20000,
	});
}

// 退出方法
export function logout() {
	return request({
		url: '/logout',
		method: 'post',
	});
}